import requests

# # 登录
# rsp = requests.post("http://127.0.0.1:8083/loginJSON", json={
#     "user": "bo",
#     "password": "imooc"
# })
# print(rsp.text)

# # 注册
# rsp = requests.post("http://127.0.0.1:8083/signup", json={
#     "age": 18,
#     "name": "bobby",
#     "email": "12@qq.com",
#     "password": "imooc",
#     "re_password": "imo"
# })
# print(rsp.text)

rsp = requests.get("http://127.0.0.1:8083/ping", headers={
    "x-token": "bobby"
})
print(rsp.text)
